package cn.auction.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Tool {
    public static Date strToDate(String dateStr, String parttern) throws Exception {
        SimpleDateFormat sdf = new SimpleDateFormat(parttern);
        return sdf.parse(dateStr);
    }

}
